﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LybrixNursingCommon;
namespace LybrixNursingCRMDesktop.FrameWork
{
    public static class Repository
    {
        //Singlton Pattern

        private static NursingDBContainer entities;
        public static NursingDBContainer Entities
        {
            get
            {
                if (entities == null)
                {
                    entities = new NursingDBContainer(ConnectionFactory.getLibraryConnection());
                }
                return entities;
            }
        }
    }
}
